import Router from 'koa-router';
import accountRouter from './account/index';
import chatGptRouter from './chat/index';

const apiRouter = new Router();

// 账户相关
apiRouter.use('/account', accountRouter.routes(), accountRouter.allowedMethods());

// 聊天相关
apiRouter.use('/chat', chatGptRouter.routes(), chatGptRouter.allowedMethods());

export default apiRouter;
